package com.example.jzg.mvpdemo.contract;


import com.example.jzg.mvpdemo.base.BaseModel;
import com.example.jzg.mvpdemo.base.BasePresenter;
import com.example.jzg.mvpdemo.base.BaseView;
import com.example.jzg.mvpdemo.bean.LoginBean;

import java.util.Map;

import rx.Observable;

/**
 * author: guochen
 * date: 2016/12/2 17:48
 * email: 
 */
public interface LoginContract {
    interface ContractLoginModel extends BaseModel{
        Observable<LoginBean> login(Map<String,String> params);
    }

    interface loginView extends BaseView{
        void loginSuccess(LoginBean loginBean);
    }

    abstract static class Presenter extends BasePresenter<loginView,ContractLoginModel>{
        public abstract void login();
    }
}
